package com.ocom.human.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.human.EntityResourceApi;
import com.ocom.common.resp.Result;

import java.util.List;

public interface ResourceApiService extends IService<EntityResourceApi> {
    List<EntityResourceApi> selectList(Integer parentId);

    Integer WebPage(String pageCode, String pageName,Integer parentId);

    Boolean saveResourceApi(EntityResourceApi entityResourceApi);

    List<EntityResourceApi> selectWebButtonList(Integer pageId);

    Result modifyWebPage(Integer pageId, String pageName, String description,String pageCode,String pageAppCode,Integer parentId);

    EntityResourceApi selectWebButton(Integer buttonId);

    Boolean deleteWebButton(Integer buttonId);

    Result getRoleButtonPermission(Integer pageId, String buttonCode, String buttonName, String description);

    Result modifyWebButton(Integer pageId, Integer buttonId, String buttonName, String description);

    List<EntityResourceApi> getPageList(Integer role,Integer webOrApp);

    List<EntityResourceApi> getButtoneList(Integer role);
}
